package de.risk.game;

import java.util.ArrayList;

import de.risk.geo.Point;

public class City {

	private int id = -1;
	private String name = null;
	private String bLand = null;
	private int einwohner = -1;
	private Point location = null;
		
	public City(int id, String name, String bLand, int einwohner, Point location) {
		super();
		this.id = id;
		this.name = name;
		this.bLand = bLand;
		this.einwohner = einwohner;
		this.location = location;
	}

	public String toString(){
		return "[City] id:"+this.getId()+
				", name: "+this.getName()+
				", bLand: "+this.getbLand()+
				", einwohner: "+this.getEinwohner()+
				", location: "+this.getLocation().toString();
	}
	
	public static void printArrayList(ArrayList<City> list) {
		for(int i=0; i<list.size(); i++){
			System.out.println(list.get(i));
		}	
	}
	
	public Point getLocation() {
		return location;
	}

	public void setLocation(Point location) {
		this.location = location;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getbLand() {
		return bLand;
	}

	public void setbLand(String bLand) {
		this.bLand = bLand;
	}

	public int getEinwohner() {
		return einwohner;
	}

	public void setEinwohner(int einwohner) {
		this.einwohner = einwohner;
	}



	
	
}
